import tkinter as tk
from tkinter import messagebox

window = tk.Tk()

window.title('C语言中文网')

window.geometry('400x300+300+200')

def click_btn():
  messagebox.showinfo(title='温馨提示',message='欢迎来到C语言中文网')
  
button = tk.Button(window,text='点击前往',bg='#7CCD7C',width=20,height=5,command=click_btn).pack()

window.mainloop()